import java.util.Objects;

class Student{
    String name;
    int age;
    public  Student(String name,int age){
        this.name = name;
        this.age = age;
    }

//    @Override
//    public int hashCode() {
//        return Objects.hash(name, age);
//    }
}
public class Test {
    public static void main(String[] args) {
        Student person1 = new Student("xiaoming",20);
        Student person2 = new Student("xiaoming",20);
        System.out.println(person1.hashCode());
        System.out.println(person2.hashCode());
    }
}
